import QtQuick 2.15
import QtQuick.Window 2.15
import FluentUI

Window {
    width: 400
    height: 300
    visible: true
    title: "QtQuick App"

    Rectangle {
        anchors.fill: parent
        color: "lightblue"

        FluText {
            id: everyDaySentence
            height: 50
            anchors.top: parent.top
            anchors.left: parent.left
            anchors.right: parent.right
            text: "每日一言加载中..."
            
        }

        FluButton {
            id: btn
            anchors.centerIn: parent
            text: "Hello, QtQuick!"
            onClicked:{
                textBox.text = "You clicked the button!"
            }
        }

        FluTextBox{
            id: textBox
            anchors.bottom: parent.bottom
            placeholderText: qsTr("Single-line Input Box")

        }
    }

}
